@charset "utf-8";

@import url(http://fonts.googleapis.com/css?family=Maven+Pro:400,500);
@import "mixins";
@import "variables";

// Common

html, body, .fill { width: 100%; height: 100% }
.hfill { width: 100%; }
.vfill { width: 100%; }
.pad { display: block; padding: 0.5em; }
html, body {
    margin: 0;
    border: none;
    padding: 0;
}
body {
  font-family: "Maven Pro", sans-serif;

  cursor: default;
}

body {
    background: $background-headfoot image-url("app/themes/freshnight/background.jpg");
    color: $foreground-main;
    overflow: hidden;
}

#lnt, #ent, #to, #lb, #fp, #h, ul#tn, ul.sn, #hr, #vc, #vl, #vtestc, #gc, #gl, #ac, #al, #hc, #hq, #f, #tt, .sidebar {
    position: absolute;
}

.overlay {
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  background-color:#000;
  background-color:rgba(0,0,0,0.9);
  display:none
}

#to {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #000;
  @include opacity(0.8);
  display: none;
  
  p {
    text-align: center;
  }
}

.bb {
  background: #000;
  border-radius: 0.25em;
  @include box-shadow(0px 0px 10px #000);
}

// Notification templates

#lnt {
    width:30em;
    top:50%;
    left:50%;
    margin-left:-15em;
    margin-top:9.5em;
    z-index: 10000;
}
#ent {
    width:30em;
    top:1em;
    left:50%;
    margin-left:-15em;
    z-index: 10001;
}

// Login Box

#lb {
  left: 50%;
  top: 50%;
  margin-left: -11.5em;
  margin-top: -7em;
  width: 20em;
  height: 13em;
  padding: 0.5em 1.5em;
}

//forgotten password
#fp {
  left: 50%;
  top: 50%;
  width: 20em;
  height: 0.6em;
  text-align: center;
  margin-left: -10em;
  margin-top: 7.5em;
}

#fp span {
  font-size: 0.6em;
  @include opacity(0.5);
}

//languagelive title
h3 {
  text-align:center;
  font-size:12pt;
  font-weight:500;
  text-shadow: 0px 1px 1px #555;
  margin: 0.3em 0 1.5em 0;
}

// Header

// header background
#h {
    top: 0;
    left: 0;
    right: 0;
    height: $header-size;
}

// top-level nav: dojo, hall of zen
ul#tn {
    @include inline-list;
    @include header;

    top: 0.4em;
    left: 0;

    font-size: 1.5em;

    li {
        padding-left: 0.75em;
    }
}

// sub-navs
ul.sn {
    @include inline-list;
    @include header;

    top: 2.2em;
    left: 1em;

    font-size: 1.25em;

    li {
        padding-left: 0.75em;
    }
}

// right header
#hr {
    @include header;

    top: 0.5em;
    right: 0.5em;
    width: auto;
    text-align: right;
    z-index: 1000;
}

#un, #li {
    @include opacity(0.8);
    @include default-transition;

    display: inline;
    float: left;

    padding: 0.25em;
}

// username display
#un {
    padding: 0.25em 1em;
}

#un:hover, #li:hover {
    @include opacity(1);
}

// Content

#dummyc {
    position: absolute;
    left: $leftsidebar-width;
    right: $rightsidebar-width;
    margin: 0 ($sidebar-hpadding * 2);
    height: 0;
}

#vc, #vl, #gc, #gl, #ac, #al, #hc, #hq {
    top: $header-size;
    left: $leftsidebar-width;
    right: $rightsidebar-width;
    bottom: $footer-size;
    display: none;
    background-color: #000;
    background-color: rgba(0,0,0,0.7);
    margin: 0 ($sidebar-hpadding * 2);
    @include box-shadow(0px 0px 10px #000)
}

//sidebars
.sidebar {
    background-color: $background-main;
    padding: 1em $sidebar-hpadding;
    overflow: auto;
    display: none;
}
.sidebar table.menu {
    width: 100%;

    tr {
        td {
          padding: 0.2em;
          padding-left: 24px;
          @include opacity(0.7);
        }
    }
    
    tr.image {
      //td {
      //  padding-left: 0;
      //}
      img {
        float: left;
        margin-left: -24px;
        //margin: 0;
        //margin-right: 8px;
      }
    }

    tr.spacer {
        height: 0.4em;
    }

    tr.active td {
        @include opacity(1)
    }
}

.sidebar.sleft {
    left: 0;
    top: $header-size;
    bottom: $footer-size;
    width: $leftsidebar-width;
}
.sidebar.sright {
    right: 0;
    top: $header-size;
    bottom: $footer-size;
    width: $rightsidebar-width;
}

//carousel
.csl {
    position: absolute;
    color: white;
}

//vocab back button
#vbackbtn {
  position: absolute;
  width: 5em;
  left: 50%;
  top: 50%;
  margin-left: -15em;
  margin-top: -11.5em;
  color: #777;
}

//vocab test box
#vtestc, #vwrong {
  width: 30em;
  height: 20em;
  margin-left: -15em;
  margin-top: -10em;
  left: 50%;
  top: 50%;
}

#vtestc {
    .qdisplay, .pcorrect, .question, .progress, .jqTransformInputWrapper, .submitbtn, .replay, #vcorrect, #vinputwidget, #vtdisplay {
        position: absolute;
    }

    #vtdisplay {
      text-align: center;
      top: 1em;
      left: 50%;
      width: 3em;
      margin-left: -1.5em;
      font-weight: 500;
      text-shadow: 0px 0px 3px #fff;
    }

    .qdisplay {
        top: 1em;
        left: 1em;
    }

    .pcorrect {
        top: 1em;
        right: 1em;
    }

    .progress {
        background: #555555;
        left: 0;
        right: 0;
        top: 2.5em;
        height: 0.3em;
    }

    .question {
        left: 0em;
        right: 0em;
        top: 3.3em;
        font-size: 2em;
        text-align: center;
    }

    .jqTransformInputWrapper {
        left: 1em;
        right: 1em;
        width: auto;
        bottom: 4em;
        font-size: 1.2em;
    }

    .jqTransformInputWrapper input {
        text-align: center;
        margin: 0.4em 0;
    }

    .submitbtn, .submitbtn span {
        width: 10em;
        padding: 0.7em 0;
    }

    .submitbtn {
        margin-left: -5em;
        left: 50%;
        bottom: 1em;
    }

    .replay {
        bottom: 8em;
        right: 1em;
    }

    #vcorrect {
        bottom: 8em;
        width: 100%;
        text-align: center;
        color: #0f0;
        font-weight: 500;
        display: none;
    }

    #vinputwidget {
      bottom: 1em;
      left: 1em;
    }
}

#vwrong {
  position: absolute;
  display: none;

  padding: 1em;

  p {
    width: 100%;
  }

  #vanswer {
    text-align: center;
    font-size: 2em;
  }

  #vinputted {
    text-align: center;
    font-size: 1.5em;
  }

  #vsubmit {
    margin-left: -5em;
    left:  50%;
    position: absolute;
    bottom: 1em;
  }

  #vwasright {
    position: absolute;
    right: 2em;
    bottom: 2.5em;
  }
}

// Grammar
#gc {
  padding: 1em;
}

// Settings

#settingsbackbtn {
  position:absolute;
  left:50%;
  margin-left:-10em;
  bottom:50%;
  margin-bottom:8em;
}

// Footer

#f {
    left: 0;
    right: 0;
    bottom: 0;
    height: $footer-size;
    text-align: center;
    overflow: hidden
    //font-size: 0.8em;
}

#lefthidebutton, #righthidebutton {

}

#lefthidebutton {
    position: absolute;
    left: 2em;
    bottom: 0.5em;
    height: 1.5em;
    width: $leftsidebar-width - 4em;

    table {
        padding: 0;
    }
}

#righthidebutton {
    position: absolute;
    right: 2em;
    bottom: 0.5em;
    height: 1.5em;
    width: $rightsidebar-width - 4em;

    table {
        padding: 0;
    }
}

#pointsbox {
  position: absolute;
  width: 20%;
  left: 20%;
  height: 1.5em;
  bottom: 0.5em;
  overflow: hidden;
  white-space: nowrap;
}

#questionsbox {
  position: absolute;
  width: 20%;
  left: 40%;
  height: 1.5em;
  bottom: 0.5em;
  overflow: hidden;
  white-space: nowrap;
}

#hwkbox {
  position: absolute;
  width: 20%;
  left: 60%;
  height: 1.5em;
  bottom: 0.5em;
  overflow: hidden;
  white-space: nowrap;
}

// Extra

// tooltip
#tt {
    display: none;
    //TODO: Style properly or remove
}

// horizontal menu item
.hmi {
    display: inline;

    padding-left: 0.25em;
    padding-right: 0.25em;
}

